package com.huiben.app.cartoonbooks.app;



import com.huiben.app.cartoonbooks.base.RxSchedulers;
import com.huiben.app.cartoonbooks.net.BaseApi;

import rx.Observable;
import rx.functions.Func1;

/**
 * Created by LXR on 2017/2/14.
 */

public class FrameModel implements FrameContract.Model {


        @Override
        public Observable<FrameBean> getData (final String postId){
            return BaseApi.getDefault().getVideoList(BaseApi.getCacheControl(), postId )
                    .map(new Func1<FrameBean, FrameBean>() {
                        @Override
                        public FrameBean call(FrameBean map) {


                            return map;
                        }
                    })
                    .compose(RxSchedulers.<FrameBean>io_main());
        }



}
